home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-27 | 1.3 KB | 37 lines | [TEXT/ttxt] |
- Commands used by the Y2.0 command interface:
-
- Evaluation Commands. These are executed in the context of the current module.
- := exp Evaluate and print exp
- :@ exp Run exp of type IO()
- :> exp Run exp of type IO(a), print result
- :: exp Print the type of exp
-
- Scratch pad commands. All lines typed that do not start with : are added to
- the scratch pad. Evaluation commands may refer to definitions in the pad.
- :clear Discard the current pad
- :list Print the current pad
-
- Commands to load & run programs.
- :load file Load a file (compilation unit) into the system
- :compile file Compile a file to native code and save the binary
- :run file Load a file and run `main'
-
- Commands to control the current module:
- :module name Set the current module
- :Main Switch to an empty module named Main
-
- Other commands:
- :cd directory Set the current directory
- :? Print this help file
- :quit Leave Haskell
- :p? Describe available printers
- :p= p1 p2 ... Set the printers
- :p+ p1 p2 ... Enable selected printers
- :p- p1 p2 ... Disable selected printers
- :o? Describe available optimizers
- :o= o1 o2 ... Set the optimizers
- :o+ o1 o2 ... Enable selected optimizers
- :o- o1 o2 ... Disable selected optimizers
- :(fn ...) Evaluate a Lisp expression
- :debug on-off Enable/disable the Lisp debugger
-